package com.fudan.adse.domain.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author Jerry Zhang <zhangjian16@fudan.edu.cn>
 * @desc 用户传值对象
 * @date 2022-09-24 15:10
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserLoginParam {
    @NotBlank(message = "用户名不能为空")
    private String username;
    @NotBlank(message = "密码不可以为空")
    @Length(min = 6, max = 16, message = "密码长度需要在6~16个字")
    private String password;
}
